package com.aaron.study.kefu.feign;

import org.springframework.cloud.netflix.feign.FeignClient;

import com.aaron.study.common.config.CustomerFeignConfig;
import com.aaron.study.common.entity.TextMessage;

import feign.RequestLine;

/**
 * feign 客户端 <br>
 * Date: 2018/1/24 <br>
 * Time: 14:52 <br>
 * <p>
 * <a href="https://gitee.com/aaronsd/spring-cloud-security/">spring-cloud-security</a>
 *
 * @author <a href="mailto:610195979@qq.com?subject=com.aaron.study.spring-cloud-security">aaron</a>
 * @version 0.0.1
 */
@FeignClient(name = "customer", configuration = CustomerFeignConfig.class, fallback = CustomerFallback.class)
public interface CustomFeignClient {

	/**
	 * 客服主动给客户发送消息
	 * 
	 * @param textMessage
	 *        textMessage
	 */
	@RequestLine("POST /message/from/kefu")
	void sendMessage2Customer(TextMessage textMessage);
}
